package com.yidu.ladder.delivery.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 运费实体类
 * 
 * @author yy
 * @since 2019-12-20
 *
 */
public class Free implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -5373908899319841052L;

	/**
	 * 运费Id
	 */
	private String freeId;
	/**
	 * 始发地
	 */
	private String startProvince;

	/**
	 * 区域
	 */
	private String region;

	/**
	 * 目的地
	 */
	private String endProvince;

	/**
	 * 首重
	 */
	private BigDecimal headWeight;

	/**
	 * 1到50KG
	 */
	private BigDecimal t50;

	/**
	 * 50到100KG
	 */
	private BigDecimal t100;

	/**
	 * 100到300KG
	 */
	private BigDecimal t300;

	/**
	 * 300KG以上
	 */
	private BigDecimal gt300;

	/**
	 * 到达天数
	 */
	private Integer arrivalTime;

	/**
	 * 空的构造方法
	 */
	public Free() {

	}

	/**
	 * 带有参数的构造方法
	 * 
	 * @param freeId        运费Id
	 * @param startProvince 始发地
	 * @param region        区域
	 * @param endProvince   目的地
	 * @param headWeight    首重
	 * @param t50           1到50KG
	 * @param t100          50到100KG
	 * @param t300          100到300KG
	 * @param gt300         300KG以上
	 * @param arrivalTime   到达天数
	 */
	public Free(String freeId, String startProvince, String region, String endProvince, BigDecimal headWeight,
			BigDecimal t50, BigDecimal t100, BigDecimal t300, BigDecimal gt300, Integer arrivalTime) {
		super();
		this.freeId = freeId;
		this.startProvince = startProvince;
		this.region = region;
		this.endProvince = endProvince;
		this.headWeight = headWeight;
		this.t50 = t50;
		this.t100 = t100;
		this.t300 = t300;
		this.gt300 = gt300;
		this.arrivalTime = arrivalTime;
	}

	public String getFreeId() {
		return freeId;
	}

	public void setFreeId(String freeId) {
		this.freeId = freeId;
	}

	public String getStartProvince() {
		return startProvince;
	}

	public void setStartProvince(String startProvince) {
		this.startProvince = startProvince;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getEndProvince() {
		return endProvince;
	}

	public void setEndProvince(String endProvince) {
		this.endProvince = endProvince;
	}

	public BigDecimal getHeadWeight() {
		return headWeight;
	}

	public void setHeadWeight(BigDecimal headWeight) {
		this.headWeight = headWeight;
	}

	public BigDecimal getT50() {
		return t50;
	}

	public void setT50(BigDecimal t50) {
		this.t50 = t50;
	}

	public BigDecimal getT100() {
		return t100;
	}

	public void setT100(BigDecimal t100) {
		this.t100 = t100;
	}

	public BigDecimal getT300() {
		return t300;
	}

	public void setT300(BigDecimal t300) {
		this.t300 = t300;
	}

	public BigDecimal getGt300() {
		return gt300;
	}

	public void setGt300(BigDecimal gt300) {
		this.gt300 = gt300;
	}

	public Integer getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(Integer arrivalTime) {
		this.arrivalTime = arrivalTime;
	}

	@Override
	public String toString() {
		return "Free [freeId=" + freeId + ", startProvince=" + startProvince + ", region=" + region + ", endProvince="
				+ endProvince + ", headWeight=" + headWeight + ", t50=" + t50 + ", t100=" + t100 + ", t300=" + t300
				+ ", gt300=" + gt300 + ", arrivalTime=" + arrivalTime + "]";
	}

}